ExamPlay Light Logo
เข้าสู่ระบบ

Computer Science for IGCSE & O level - Programming (Section 12 - No. 13)

If the following code is executed and age is 17: ``` IF age >= 17 THEN Print "You are an adult" ELSE Print "You are a child" ENDIF ``` What will be the output?
You are a child
You are an adult
Nothing will be printed.
The program will throw an error.

คำอธิบาย

Since 17 is >= 17, the THEN block is executed, thus printing "You are an adult".

ความคิดเห็น (0)

เข้าสู่ระบบเพื่อแสดงความคิดเห็น
โฆษณา
BrainBehindX Inc Logo
©2026; ขับเคลื่อนโดย BrainBehindX Inc